package main

import "fmt"

// append 函数也是内置函数，它可以将元素添加到 slice 里面
func main() {
	dwarfs := []string{"Ceres", "Pluto", "Haumea",
		"Makemake", "Eris"}

	dwarfs = append(dwarfs, "Orcus")
	fmt.Println(dwarfs)

	dwarfs = append(dwarfs, "Salacia", "Quaoar", "Sedna")
	fmt.Println(dwarfs)
	fmt.Println(len(dwarfs))
}
